Bug 524151 - Dragging of 0-byte files results in an empty filename on
authorTor Lillqvist <tml@novell.com>
Mon, 24 Mar 2008 17:35:02 +0000 (17:35 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 24 Mar 2008 17:35:02 +0000 (17:35 +0000)
commit6861b9247ff971ecf50774a4800cf2fa8af3f737
tree6e296d22e561be4ca3d328bde3b01e083f2e8385
parent475e1bea1359d43d9c0e71775760a6133d2e606c
Bug 524151 - Dragging of 0-byte files results in an empty filename on

2008-03-24  Tor Lillqvist  <tml@novell.com>

Bug 524151 - Dragging of 0-byte files results in an empty filename
on Windows XP and above

* gdk/win32/gdkdnd-win32.c (resolve_link): Check for the file
being empty first. For some reason ISHellLink and IPersistFile
succeeds in interpreting empty files as shortcuts, claiming the
target of the shortcut is an empty path.

Change the function to take the wide character file name that the
caller already has anyway, to avoid a superfluous conversion from
UTF-8 to UTF-16.

svn path=/trunk/; revision=19931
ChangeLog
gdk/win32/gdkdnd-win32.c